package top.honlnk.czuan.mapper.dict;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import top.honlnk.czuan.pojo.entity.BaiduServeInfo;

@Mapper
public interface BaiduDictMapper {

    @Select("select * from baidu_serve_info where name = #{name}")
    BaiduServeInfo getBaiduServeInfo(String name);

    @Update("update baidu_serve_info set access_token = #{accessToken} where name = #{name}")
    void setAccessToken(String accessToken, String name);

}
